package com.cyzy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyzy.pojo.Menu;
import com.cyzy.pojo.RoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper extends BaseMapper<Menu> {

    List<Menu> selectMenuList(String username);

    List<RoleMenu> selectRoleMenuList();

    List<RoleMenu> searchworkersAll(
            @Param("username") String username,
            @Param("role") String role,
            @Param("state") Integer state);

    List<Menu> searchMenuAll(
            @Param("menuName") String menuName,
            @Param("menuState") Integer menuState);
}
